{foreach $data.errors_alert as $key => $error}
    <div class="error_alert">{$error}</div>
{/foreach}

{foreach $data.goods_alert as $message}
    <div class="good_alert">{$message}</div>
{/foreach}